From fa1c461c13da822da7015673c5f70b2a606b7d33 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 21 Sep 2022 20:55:46 -0400 Subject: [PATCH] Make the portals debug flag always available No need to restrict this to debug builds. --- gdk/gdk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/gdk.c b/gdk/gdk.c index 46abff469f..90f3c9ecd5 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -117,7 +117,7 @@ static const GdkDebugKey gdk_debug_keys[] = { { "selection", GDK_DEBUG_SELECTION, "Information about selections" }, { "clipboard", GDK_DEBUG_CLIPBOARD, "Information about clipboards" }, { "nograbs", GDK_DEBUG_NOGRABS, "Disable pointer and keyboard grabs (X11)", TRUE }, - { "portals", GDK_DEBUG_PORTALS, "Force the use of portals" }, + { "portals", GDK_DEBUG_PORTALS, "Force the use of portals", TRUE }, { "gl-disable", GDK_DEBUG_GL_DISABLE, "Disable OpenGL support" }, { "gl-software", GDK_DEBUG_GL_SOFTWARE, "Force OpenGL software rendering" }, { "gl-texture-rect", GDK_DEBUG_GL_TEXTURE_RECT, "Use OpenGL texture rectangle extension" }, @@ -361,7 +361,7 @@ gdk_running_in_sandbox (void) gboolean gdk_should_use_portal (void) { - if (GDK_DISPLAY_DEBUG_CHECK (NULL, PORTALS)) + if (gdk_display_get_debug_flags (NULL) & GDK_DEBUG_PORTALS) return TRUE; if (gdk_running_in_sandbox ()) -- 2.30.2